package com.sgu6.sgu6_machine.container;

import com.sgu6.redis.dto.ListGoodsSimpleDto;
import com.sgu6.sgu6_machine.util.GoodsUtils;

import java.util.List;

public class GoodsContainer {
    public static List<ListGoodsSimpleDto> listGoodsSimpleDto;

    public static String getBarnId() {
        List<ListGoodsSimpleDto> listGoodsSimpleDto;
        try {
            listGoodsSimpleDto = GoodsUtils.read();
            return listGoodsSimpleDto.get(0).barnId;
        } catch (
                Exception e) {
            return "";
        }

    }
}